package com.wqiuqiu.gulimall.order.feign;

import com.wqiuqiu.common.R;
import com.wqiuqiu.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeignService {
    @PostMapping("/ware/waresku/getware")
    R getWarebySkuIds(@RequestBody List<Long> skuIds);

    @PostMapping("/ware/waresku/lock/order")
    R orderLock(@RequestBody WareSkuLockVo wareSkuLockVo);

    @PostMapping("/ware/waresku/unlock/order")
    R unlockOrder(@RequestBody String orderSo);

}
